+2008-08-04 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtkclist.[ch]
+ * gtk/gtkctree.[ch]
+ * gtk/gtkitemfactory.[ch]
+ * gtk/gtkobject.[ch]
+ * gtk/gtksignal.[ch]: s/GtkDestroyNotify/GDestroyNotify/g
+
2008-08-04 Sven Neumann <sven@gimp.org>
* gtk/gtklinkbutton.c (gtk_link_button_set_uri): update the link
}
void
-gtk_clist_set_row_data_full (GtkCList *clist,
- gint row,
- gpointer data,
- GtkDestroyNotify destroy)
+gtk_clist_set_row_data_full (GtkCList *clist,
+ gint row,
+ gpointer data,
+ GDestroyNotify destroy)
{
GtkCListRow *clist_row;
GtkStyle *style;
gpointer data;
- GtkDestroyNotify destroy;
+ GDestroyNotify destroy;
guint fg_set : 1;
guint bg_set : 1;
gpointer data);
/* sets a data pointer for a given row with destroy notification */
-void gtk_clist_set_row_data_full (GtkCList *clist,
- gint row,
- gpointer data,
- GtkDestroyNotify destroy);
+void gtk_clist_set_row_data_full (GtkCList *clist,
+ gint row,
+ gpointer data,
+ GDestroyNotify destroy);
/* returns the data set for a row */
gpointer gtk_clist_get_row_data (GtkCList *clist,
if (ctree_row->row.destroy)
{
- GtkDestroyNotify dnotify = ctree_row->row.destroy;
+ GDestroyNotify dnotify = ctree_row->row.destroy;
gpointer ddata = ctree_row->row.data;
ctree_row->row.destroy = NULL;
}
void
-gtk_ctree_node_set_row_data_full (GtkCTree *ctree,
- GtkCTreeNode *node,
- gpointer data,
- GtkDestroyNotify destroy)
+gtk_ctree_node_set_row_data_full (GtkCTree *ctree,
+ GtkCTreeNode *node,
+ gpointer data,
+ GDestroyNotify destroy)
{
- GtkDestroyNotify dnotify;
+ GDestroyNotify dnotify;
gpointer ddata;
g_return_if_fail (GTK_IS_CTREE (ctree));
void gtk_ctree_node_set_row_data_full (GtkCTree *ctree,
GtkCTreeNode *node,
gpointer data,
- GtkDestroyNotify destroy);
+ GDestroyNotify destroy);
gpointer gtk_ctree_node_get_row_data (GtkCTree *ctree,
GtkCTreeNode *node);
void gtk_ctree_node_moveto (GtkCTree *ctree,
* gtk_item_factory_popup_with_data:
* @ifactory: a #GtkItemFactory of type #GTK_TYPE_MENU (see gtk_item_factory_new())
* @popup_data: data available for callbacks while the menu is posted
- * @destroy: a #GtkDestroyNotify function to be called on @popup_data when
+ * @destroy: a #GDestroyNotify function to be called on @popup_data when
* the menu is unposted
* @x: the x position
* @y: the y position
void
gtk_item_factory_popup_with_data (GtkItemFactory *ifactory,
gpointer popup_data,
- GtkDestroyNotify destroy,
+ GDestroyNotify destroy,
guint x,
guint y,
guint mouse_button,
* @ifactory: a #GtkItemFactory
* @func: the #GtkTranslateFunc function to be used to translate path elements
* @data: data to pass to @func and @notify
- * @notify: a #GtkDestroyNotify function to be called when @ifactory is
+ * @notify: a #GDestroyNotify function to be called when @ifactory is
* destroyed and when the translation function is changed again
*
* Sets a function to be used for translating the path elements before they
* Deprecated: 2.4: Use #GtkUIManager instead.
*/
void
-gtk_item_factory_set_translate_func (GtkItemFactory *ifactory,
- GtkTranslateFunc func,
- gpointer data,
- GtkDestroyNotify notify)
+gtk_item_factory_set_translate_func (GtkItemFactory *ifactory,
+ GtkTranslateFunc func,
+ gpointer data,
+ GDestroyNotify notify)
{
g_return_if_fail (ifactory != NULL);
GtkTranslateFunc translate_func;
gpointer translate_data;
- GtkDestroyNotify translate_notify;
+ GDestroyNotify translate_notify;
};
struct _GtkItemFactoryClass
guint32 time_);
void gtk_item_factory_popup_with_data(GtkItemFactory *ifactory,
gpointer popup_data,
- GtkDestroyNotify destroy,
+ GDestroyNotify destroy,
guint x,
guint y,
guint mouse_button,
void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory,
GtkTranslateFunc func,
gpointer data,
- GtkDestroyNotify notify);
+ GDestroyNotify notify);
/* Compatibility functions for deprecated GtkMenuFactory code
*/
struct _GtkWeakRef
{
- GtkWeakRef *next;
- GtkDestroyNotify notify;
- gpointer data;
+ GtkWeakRef *next;
+ GDestroyNotify notify;
+ gpointer data;
};
void
-gtk_object_weakref (GtkObject *object,
- GtkDestroyNotify notify,
- gpointer data)
+gtk_object_weakref (GtkObject *object,
+ GDestroyNotify notify,
+ gpointer data)
{
GtkWeakRef *weak;
}
void
-gtk_object_weakunref (GtkObject *object,
- GtkDestroyNotify notify,
- gpointer data)
+gtk_object_weakunref (GtkObject *object,
+ GDestroyNotify notify,
+ gpointer data)
{
GtkWeakRef *weaks, *w, **wp;
}
void
-gtk_object_set_data_by_id_full (GtkObject *object,
- GQuark data_id,
- gpointer data,
- GtkDestroyNotify destroy)
+gtk_object_set_data_by_id_full (GtkObject *object,
+ GQuark data_id,
+ gpointer data,
+ GDestroyNotify destroy)
{
g_return_if_fail (GTK_IS_OBJECT (object));
}
void
-gtk_object_set_data_full (GtkObject *object,
- const gchar *key,
- gpointer data,
- GtkDestroyNotify destroy)
+gtk_object_set_data_full (GtkObject *object,
+ const gchar *key,
+ gpointer data,
+ GDestroyNotify destroy)
{
g_return_if_fail (GTK_IS_OBJECT (object));
g_return_if_fail (key != NULL);
GtkObject* gtk_object_ref (GtkObject *object);
void gtk_object_unref (GtkObject *object);
void gtk_object_weakref (GtkObject *object,
- GtkDestroyNotify notify,
+ GDestroyNotify notify,
gpointer data);
void gtk_object_weakunref (GtkObject *object,
- GtkDestroyNotify notify,
+ GDestroyNotify notify,
gpointer data);
/* Set 'data' to the "object_data" field of the object. The
void gtk_object_set_data_full (GtkObject *object,
const gchar *key,
gpointer data,
- GtkDestroyNotify destroy);
+ GDestroyNotify destroy);
void gtk_object_remove_data (GtkObject *object,
const gchar *key);
gpointer gtk_object_get_data (GtkObject *object,
void gtk_object_set_data_by_id_full (GtkObject *object,
GQuark data_id,
gpointer data,
- GtkDestroyNotify destroy);
+ GDestroyNotify destroy);
gpointer gtk_object_get_data_by_id (GtkObject *object,
GQuark data_id);
void gtk_object_remove_data_by_id (GtkObject *object,
GtkSignalFunc func,
GtkCallbackMarshal unsupported,
gpointer data,
- GtkDestroyNotify destroy_func,
+ GDestroyNotify destroy_func,
gint object_signal,
gint after)
{
GtkSignalFunc func,
GtkCallbackMarshal unsupported,
gpointer data,
- GtkDestroyNotify destroy_func,
+ GDestroyNotify destroy_func,
gint object_signal,
gint after);
void gtk_signal_emitv (GtkObject *object,